public class text1 {

    public static void main(String[] args) {

        String rand="";

        for (int i=0;i<6;i++) {
            int item = 1 + (int)(Math.random() * 3);
            if (item == 1) {
                int shu = 48 + (int) (Math.random() * 10);
                char shuc =(char) shu;
                rand = rand + shuc;
            }
            if (item == 2) {
                int capital = 65 + (int) (Math.random() * 26);
                char capitalc = (char) capital;
                rand = rand + capitalc;
            }
            if (item == 3) {
                int lower = 97 + (int) (Math.random() * 26);
                char lowerc = (char) lower;
                rand = rand + lowerc;
            }
        }

        System.out.println(rand);

    }

}
